import type { App } from 'vue';

import { auth } from './auth';
import { focusSelect } from './focus-select';
import { focus } from './focus';
import { ripple } from './ripple';

// 全局注册 directive
export function setupDirective(app: App<Element>) {
  // v-auth
  app.directive('auth', auth);
  // v-focus-select
  app.directive('focusSelect', focusSelect);
  // v-focus
  app.directive('focus', focus);
  // v-ripple
  app.directive('ripple', ripple);
}
